<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" language="JavaScript">
	var filemanage_js_mkdir_empty  = "[%$ST.filemanage_js_mkdir_empty%]";
	var filemanage_js_mkdir_ok = "[%$ST.filemanage_js_mkdir_ok%]";
	var filemanage_js_mkdir_no = "[%$ST.filemanage_js_mkdir_no%]";
	$(window).load(function(){
		var h = $(window).height();
		$('#mainwindowhidden').css({height:h-39});
		var options = {
			beforeSubmit: formverify,
			success:saveResponse
		}
		$('#filerename').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	});




	function formverify(formData, jqForm, options) {
		var queryString = $.param(formData);
		var get=urlarray(queryString);
		if(get['dirname'].match(/^[\w.]+$/ig)==null) {
			document.filerename.dirname.focus();
			alert(filemanage_js_mkdir_empty);
			return false;
		}
		windowsdig('Loading','iframe:index.php?archive=management&action=load','400px','180px','iframe',false);
	}

	function saveResponse(options){
		closeifram();
		if (options=='true'){
			alert(filemanage_js_mkdir_ok);
			parent.refresh('filemodelattselectform','selectall','check_all');
			parent.closeifram();
		}else{
			alert(filemanage_js_mkdir_no);
			parent.closeifram();
		}
	}
</script>
<!--[if IE 6]>
<style type="text/css" media="screen"> 
body { behavior:url("templates/css/csshover.htc");} 
</style> 
<![endif]-->
</head>

<body class="bodyflow">
<div class="centerrightwindow">
	<form name="filerename" id="filerename" method="post" action="index.php?archive=filemanage&action=madirsave">
		<input type="hidden" name="path" id="path" value="[%$path%]"/>
		<div id="mainwindowhidden">
			<div class="suggestion">
				<span class="sugicon"><span class="strong colorgorning2">[%$ST.position_title%]</span><span class="padding-left5 colorgorningage">[%$ST.filemanage_file_mkdir_mess%]</span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv" id="filecheckmanger">
				<table border="0" width="100%">
					<tr class="trstyle2">
						<td class="trtitle01">[%$ST.filemanage_file_mkdir_dirname%]</td>
						<td class="trtitle02"><input type="text" name="dirname" value="" maxlength="20" size="15" class="infoInput">  <span class="cautiontitle">[%$ST.filemanage_file_rename_newdirname_mess%]</span></td>
					</tr>
				</table>
			</div>
		</div>
		<div id="downbotton">
			<div id="subbotton">
				<table border="0" width="100%">
					<tr id="bottonsubmit">
						<td id="right"><input type="submit" name="Submit" id="submitbotton" value="[%$ST.botton_add%]" class="buttonface" title="[%$ST.botton_add%]"/></td>
						<td id="left" class="padding-left5"><input type="reset" name="reset" onClick="javascript:parent.closeifram();" id="release" value="[%$ST.botton_add_reset%]" class="buttonface"  title="[%$ST.botton_add_reset%]" /></td>
					</tr>
				</table>
			</div>
		</div>
	</form>
</div>
</body>
</html>